#include "CRole.h"


CRole::CRole(LPCTSTR Name1, LPCTSTR Name2) :CComponent(Name1,Name2), direction(0)
{

}

CRole::CRole(int x, int y, LPCTSTR Name1, LPCTSTR Name2) : CComponent(x,y,Name1,Name2),direction(0)
{

}

CRole::CRole(int x, int y, LPCTSTR Name1, LPCTSTR Name2, int Speed, char Direction) : CComponent(x, y, Name1, Name2), direction(Direction)
{

}

CRole::~CRole()
{

}


void CRole::setSpeed(int s)
{
	speed = s;
}

void CRole::setDirection(int d)
{
	direction = d;
}

int CRole::getSpeed()const
{
	return speed;
}

int CRole::getDirection()const
{
	return direction;
}